module.exports = {
  moduleNameMapper: {
    '^@/(.*)$': '<rootDir>/src/$1',
    '^~/(.*)$': '<rootDir>/src/$1',
    '^vue$': 'vue/dist/vue.common.js'
  },
  moduleFileExtensions: ['js', 'vue', 'json'],
  transform: {
    '^.+\\.js$': 'babel-jest',
    '.*\\.(vue)$': 'vue-jest'
  },
  collectCoverage: true,
  collectCoverageFrom: [
    '<rootDir>/src/components/Bell.vue',
    '<rootDir>/src/components/DateTimeRangePicker.vue',
    '<rootDir>/src/components/LevelBadge.vue',
    '<rootDir>/src/components/Monitor.vue',
    '<rootDir>/src/layout/**/*.vue',
    '<rootDir>/src/utils/**/*.js'
  ],
  testMatch: [
    '<rootDir>/test/alarm.spec.js',
    '<rootDir>/test/Bell.spec.js',
    '<rootDir>/test/common.spec.js',
    '<rootDir>/test/DateTimeRangePicker.spec.js',
    '<rootDir>/test/globalFilters.spec.js',
    '<rootDir>/test/chartMap.spec.js',
    '<rootDir>/test/chartPie.spec.js',
    '<rootDir>/test/chartTrend.spec.js',
    '<rootDir>/test/vue.ChartMap.spec.js',
    '<rootDir>/test/vue.ChartPie.spec.js',
    '<rootDir>/test/vue.ChartTrend.spec.js',
    '<rootDir>/test/vue.LevelBadge.spec.js',
    '<rootDir>/test/vue.Monitor.spec.js'
  ]
}
